package com.test.study.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.test.study.dubbo.model.User;
import com.test.study.dubbo.service.UserService;
import org.springframework.stereotype.Component;

@Component
public class DubboConsumerService {

    @Reference
    UserService userService;

    public User saveUser() {
        User user = new User();
        user.setUsername("jaycekon");
        return userService.saveUser(user);
    }
}
